﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dxr.Police.IACS.Models
{
    public class SourceAttribute : Attribute
    {
        private string _name;
        private bool _condition;
        private bool _show;
        private int _showIndex;
        private bool _timeLine;
        private bool _skip;
        private bool _order;
        private bool _key;

        public SourceAttribute(string name)
        {
            if (string.IsNullOrEmpty(name))
                throw new ArgumentNullException("名字不能为空");

            _name = name;
            _condition = false;
            _show = false;
            _timeLine = false;
            _skip = false;
            _order = false;
            _key = false;
            _showIndex = 0;
        }

        public string Name => _name;
        public bool Condition
        {
            get { return _condition; }
            set { _condition = value; }
        }
        public bool Show
        {
            get { return _show; }
            set { _show = value; }
        }
        public bool TimeLine
        {
            get { return _timeLine; }
            set { _timeLine = value; }
        }
        public bool Skip
        {
            get { return _skip; }
            set { _skip = value; }
        }
        public bool Order
        {
            get { return _order; }
            set { _order = value; }
        }
        public bool Key
        {
            get { return _key; }
            set { _key = value; }
        }
        public int ShowIndex
        {
            get { return _showIndex; }
            set { _showIndex = value; }
        }
    }
}
